import {createRouter,createWebHistory} from 'vue-router'
import SinerIndex from '@/components/Siner/index.vue'
import  SignMsg from '@/components/Siner/SignMsg.vue'
import Wallet from '@/components/Wallet/index.vue'
import ConnectProvider from '@/components/Wallet/ConnectProvider.vue'
import ContractVue from '@/components/Contract/index.vue'
import ViewBpet from '@/components/Contract/ViewBpet.vue'
const router=createRouter({
    history:createWebHistory(),
    routes:[
        {
            path:'/Siner',
            component:SinerIndex,
            children:[{
                name:'sign',
                path: 'SignMsg',
                component: SignMsg
            }]
            
        },
        {
            path:'/Wallet',
            component:Wallet,
            children:[{
                name:'connectProvider',
                path:'connectProvider',
                component: ConnectProvider
            }]
        },
        {
            path:'/Contract',
            component:ContractVue,
            children:[{
                name: 'viewBpet',
                path: 'viewBpet',
                component:ViewBpet
            }]
        }
    ]
})
export default router